package com.dynamic.mybatisplus.seata.mapper.goodsdb;

import com.dynamic.mybatisplus.seata.pojo.Goods;
import org.apache.ibatis.annotations.Param;

/**
 * @author lenovo
 */
public interface GoodsMapper {
    /**
     * 方法描述
     *
     * @param goodsId
     * @return com.dynamic.seata.demo.pojo.Goods
     */
    //@DS("goodsdb")
    Goods selectOneGoods(Long goodsId);

    /**
     * 方法描述
     *
     * @param goodsId
     * @param changeAmount
     * @return int
     */
    //@DS("goodsdb")
    int updateGoodsStock(@Param("goodsId") Long goodsId, @Param("changeAmount") Integer changeAmount);
}
